package com.cedric.yixianpai.game.cards.SubProfession.LianDanShi.LianQi;

import com.cedric.yixianpai.game.Status.DuelStatus;
import com.cedric.yixianpai.game.interfaces.DanShiCard;

public class DiLingDan extends DanShiCard {
    /**
     * title:地灵丹
     * effect:防+11/16/21-消耗
     */
    public DiLingDan(int lvl) {
        super("地灵丹");
        this.setLevel(lvl);
        if (1 == lvl) {
            this.setShield(11);
        } else if (2 == lvl) {
            this.setShield(16);
        } else if (3 == lvl) {
            this.setShield(21);
        } else {
            throw new RuntimeException("Card Level Error!");
        }
    }

    @Override
    public boolean effect(DuelStatus Sta1, DuelStatus Sta2) {
        Sta1.getPlayerBuff().addShield(this.getShield());
        return true;
    }
}
